package cate.common.table.farm.adventure.sheet;

import cate.common.table.ESheet;
import cate.common.table.farm.adventure.row.AdventureJigsawRow;
import org.apache.commons.lang3.StringUtils;

public class AdventureJigsawSheet extends ESheet<AdventureJigsawRow> {
    @Override
    public String getSheetName() {
        return "寻回奖励";
    }

    public AdventureJigsawRow findRewardRowByCharpterId(int charpter){
        for(AdventureJigsawRow row : getList()){
            if(row.charpter == charpter && StringUtils.isNotBlank(row.recallRewardStr)){
                return row;
            }
        }
        return null;
    }
}
